//
//  Bullet.h
//  SpaceStorm
//
//  Created by 祥 雍 on 13-4-26.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//
//  炮弹的模型类

#import "cocos2d.h"
#import "BulletView.h"
#import "Constants.h"

@interface Bullet : CCSprite
{
    int _bulletId;
    int _modelId;
    BOOL _isActive;
    BOOL _isTeam;
    BulletView* _view; 
}

+(id) bulletWithId:(int) bulletId;
-(id) initWithId:(int) bulletId;

-(void) shootBulletAt:(CGPoint)startPosition
             rotation:(float)rotation
                speed:(float)speed
                range:(float)range
           damageType:(int)damageType
          damageValue:(float)damageValue;

-(void) onFinishLife;

//船舰的属性
@property (readwrite) int bulletId;                          //船舰的id
@property (readwrite, retain) BulletView* view;  
@property (readwrite) BOOL isActive;                        //是否是激活状态的子弹
@property (readwrite) BOOL isTeam;                          //是否是自己队伍的子弹

@end
